<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Página de Login</title>
<r:require module="bootstrap"/>
<r:layoutResources/>

<style type="text/css">
/* Override some defaults */
html,body {
	background-color: #eee;
}

body {
	padding-top: 100px;
}

.container {
	width: 300px;
}

/* The white background content wrapper */
.container>.content {
	background-color: #fff;
	padding: 20px;
	margin: 0 -20px;
	-webkit-border-radius: 10px 10px 10px 10px;
	-moz-border-radius: 10px 10px 10px 10px;
	border-radius: 10px 10px 10px 10px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.login-form {
	margin-left: 65px;
}

legend {
	margin-right: -50px;
	font-weight: bold;
	color: #404040;
}
</style>
</head>
<%@page import="grails.util.Environment" %>
<body>

<div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a href="${createLink(uri: '/')}" class="brand">Sistema Acadêmico - SisAcad</a>
        </div>
      </div>
    </div>
	<div class="container">
		<div class="content">
			<div class="row">
				<div class="login-form">
					<h2>
						Autenticação
					</h2>
					<g:form action="login" controller="autenticacao" autocomplete='off'>
						<g:if test="${flash.mensagem}">
							<div class="alert alert-error">
								${flash.mensagem}
							</div>
						</g:if>
						<fieldset>
							<div class="clearfix">
								<input type='text' name='login' id='login'
									placeholder="Usuário"  value="${!Environment.developmentMode?:'admin'}"/>
							</div>
							<div class="clearfix">
								<input type='password' name='senha' value="${!Environment.developmentMode?:'admin'}"
									id='senha' placeholder="Senha" />
							</div>
							<button class="btn primary" type="submit">Login</button>
						</fieldset>
					</g:form>
					<g:link controller="usuario" action="solicitar">Solicitar Cadastro</g:link> 
				</div>
			</div>
		</div>
	</div>
</body>
</html>